package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 教务积分
 * </p>
 *
 * @author hpiggy
 * @since 2024-10-26
 */
@TableName("senate_score")
@ApiModel(value = "SenateScore对象", description = "教务积分")
@Data
public class SenateScore implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer lessonNum;

    private Long teacherId;

    private Long schoolId;

    @TableField(exist = false)
    private String teacherName;

    private Long subjectsId;

    private Integer yearClassId;

    @ApiModelProperty("项目id")
    private Long projectsId;

    @TableField(exist = false)
    private String projectsName;

    @ApiModelProperty("数据或率")
    private BigDecimal count;

    @TableField(exist = false)
    private BigDecimal allCount;

    @ApiModelProperty("积分")
    private Integer score;

    private Integer scoreType;

    @TableField(exist = false)
    private Integer allScore;

    @TableField(exist = false)
    private Integer dateScore;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;


    private Long teamId;

    @TableField(exist = false)
    private Long teamPid;

    @TableField(exist = false)
    private String teamName;

    /**
     * 子集合
     */
    @TableField(exist = false)
    private List<SenateScore> childRateList;

    @TableField(exist = false)
    private Long schoolPid;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private Integer teacherCount;
    
    private Integer type;
}
